<?php
class Trip
{
    public $id;
    public $from;
    public $to;
    public $date;
    public $driver_id;
    public $time;
    public $monday;
    public $tuesday;
    public $wednsday;
    public $thursday;
    public $friday;
    public $saturday;
    public $sunday;

    public function __construct($id, $from, $to)
    {
        $this->id   = $id;
        $this->from = urlencode($from);
        $this->to   = urlencode($to);
    }
}
?>